<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/11
 * Time: 10:38
 */

namespace app\controllers;

use app\models\Department;

class DepartmentController extends ApiBaseController
{
    public function actionList()
    {
        $model = new Department();
        $list= $model->all();
        return \json_encode(['list'=>$list]);
    }

}